package com.zhiyou100.taxi.service;

import com.github.pagehelper.PageInfo;
import com.zhiyou100.taxi.entity.Car;

import java.util.HashSet;
import java.util.List;
import java.util.Set;

/**
 * @author zhaokuii11@163.com
 * @create 2021-11-24 22:00
 * @Description
 */
public interface CarService {
    List<Car> getAll();

    PageInfo<Car> queryAllCar(Integer page, Integer limit, Integer status);

    //分页查询
    PageInfo<Car> queryPageCar(Integer pageNum);

    //根据 id删除
    int deleteByPrimaryKeyOne(String carId);

    //根据 id获取
    Car getCarByPrimaryKeyOne(String carId);

    //修改
    int updateCarOne(Car car);

    int saveOne(Car car);

    //添加主键
    String getPrimaryKey();

    int deleteByPrimarySet(Set<String> set);
}
